import C from './config.js';
var request = function (req) {
  // url, method, data, success, err, auth
  var token = wx.getStorageSync('token');
  wx.request({
    url: C.url + req.url,
    data: req.data,
    method: req.method,
    success: req.success,
    fail: req.fail,
    header: {
      'token': token
    }
  });
};
export default request;